<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>类型-{{ .type }}</title>
</head>
<body>
    <h1>{{ .type }}</h1>
</body>

<script>
    async function getData () {
        const response = await fetch('/api/stock/daily',{
            method: 'POST',
            headers: {'Content-Type': 'application/json'},
            body: JSON.stringify({"ts_code":"600519.SH","start_date":"20251009","end_date":"20251010","adi":"1"})
        })
       let data = await response.json();
       console.log(data)
    }

    getData();
    
</script>
</html>